import datetime
from pydantic import BaseModel, Field, validator


class ResultAudit(BaseModel):
    """日志查询 表字段查询"""
    page: int = Field(1, name='页码')
    count: int = Field(10, name='条数', description='每页最大展示条数')

    affects: str = Field(None, name='资产名模糊搜索')

    startTime: datetime.datetime = Field(None, name='开始时间')
    endTime: datetime.datetime = Field(None, name='结束时间')
